import { Injectable } from '@angular/core';
import { Router }  from '@angular/router';
import { HttpRequest } from "./httpRequest";

@Injectable()
export class LoginService {
  public authError:any;
  constructor(
    private _router: Router,
    private httpRequest:HttpRequest
  ){}


  public logout():void{ 
    localStorage.clear(); 
      this._router.navigateByUrl('/login');
      window.location.reload(true); 
  }



}
